package com.lovo.csc.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.bouncycastle.cms.PasswordRecipientId;

import java.time.LocalDate;

/**
 * 供货订单表
 */
@Getter
@Setter
@NoArgsConstructor
@TableName("supply")
public class SupplyBean {
    @TableId(value = "pk_supplyId",type = IdType.AUTO)
    private long supplyId;
    @TableField("s_idNum")
    private String idNum;
    @TableField("s_suppliersName")
    private String suppliersName;
    @TableField("s_orderDate")
    private LocalDate orderDate;
    @TableField("fk_tendersIdNum")
    private String tendersIdNum;
    @TableField("fk_tIdNum")
    private String tIdNum;

    public SupplyBean(String idNum, String suppliersName, String tendersIdNum, String tIdNum) {
        this.idNum = idNum;
        this.suppliersName = suppliersName;
        this.tendersIdNum = tendersIdNum;
        this.tIdNum = tIdNum;
    }
}
